// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'PeriodId',
        footer: "Foots",
        cnName: '会计期间表',
        name: 'Period',
        newTabEdit: false,
        url: "/Period/",
        sortName: "PeriodId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"PeriodYear":"","PeriodMonth":"","IsStarted":"","IsCurrented":""};
    const editFormOptions = [[{"dataKey":"会计年度","data":[],"title":"会计年度","field":"PeriodYear","type":"select"},
                               {"dataKey":"会计期间月份","data":[],"title":"会计期间","field":"PeriodMonth","type":"select"}],
                              [{"dataKey":"是否","data":[],"title":"期初期间","required":true,"field":"IsStarted","type":"radio"},
                               {"dataKey":"是否","data":[],"title":"当前期间","required":true,"field":"IsCurrented","type":"radio"}]];
    const searchFormFields = {};
    const searchFormOptions = [];
    const columns = [{field:'PeriodId',title:'会计期间标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'PeriodYear',title:'会计年度',type:'int',bind:{ key:'会计年度',data:[]},width:110,align:'left'},
                       {field:'PeriodMonth',title:'会计期间',type:'int',bind:{ key:'会计期间月份',data:[]},width:110,align:'left'},
                       {field:'IsStarted',title:'期初期间',type:'int',bind:{ key:'是否',data:[]},width:80,require:true,align:'left'},
                       {field:'IsCurrented',title:'当前期间',type:'int',bind:{ key:'是否',data:[]},width:80,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}